<?php
if(basename(__FILE__) == basename($_SERVER['PHP_SELF']))
{
echo "restricted access.";
exit();
}

$dbhost = "localhost"; //database host name
$dbname = "onlinesubtitles";      //database name
$dbuser = "root";      //database user name
$dbpass = "";       //database password

mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql');
mysql_select_db($dbname) or die("database select failed with error: ".mysql_error());

?>